/*
 * Copyright(c) 2020-2100 万达信息股份有限公司 版权所有
 * WONDERS INFORMATION CO., LTD. ALL RIGHTS RESERVED.
 */

package com.wondersgroup.abstractfactory;

import com.wondersgroup.abstractfactory.moder.AK47;
import com.wondersgroup.abstractfactory.moder.Bread;
import com.wondersgroup.abstractfactory.moder.Car;
import com.wondersgroup.abstractfactory.moder.ModerFactoy;

/**
 * @author: huym
 * @version: 1.0
 * @date: 2020/12/10
 */
public class Main {
    public static void main(String[] args) {
//        Car c = new Car();
//        c.go();
//        AK47 w = new AK47();
//        w.shoot();
//        Bread b = new Bread();
//        b.printName();
        AbstractFactory f = new ModerFactoy();
        Vehicle v = f.createVehicle();
        v.go();
        Weapon w = f.createWeapon();
        w.shoot();
        Food b = f.createFood();
        b.printName();
    }
}